<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>nih: nih::Octree_node_base Struct Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nih
   &#160;<span id="projectnumber">0.5</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>nih</b>      </li>
      <li class="navelem"><a class="el" href="structnih_1_1_octree__node__base.html">Octree_node_base</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">nih::Octree_node_base Struct Reference<div class="ingroups"><a class="el" href="group__octrees.html">Octrees</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="nih::Octree_node_base" -->
<p><code>#include &lt;<a class="el" href="octree_8h_source.html">octree.h</a>&gt;</code></p>

<p><a href="structnih_1_1_octree__node__base-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b6a034d0fa0269866883ac53b391ea9"></a><!-- doxytag: member="nih::Octree_node_base::Octree_node_base" ref="a0b6a034d0fa0269866883ac53b391ea9" args="()" -->
NIH_HOST_DEVICE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#a0b6a034d0fa0269866883ac53b391ea9">Octree_node_base</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">empty constructor <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15b50dd5321adcc53f2803081c1d1168"></a><!-- doxytag: member="nih::Octree_node_base::Octree_node_base" ref="a15b50dd5321adcc53f2803081c1d1168" args="(const uint32 leaf_index)" -->
NIH_HOST_DEVICE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#a15b50dd5321adcc53f2803081c1d1168">Octree_node_base</a> (const uint32 leaf_index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">leaf constructor <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a2ebc5537988bf811a3e2714597190b"></a><!-- doxytag: member="nih::Octree_node_base::Octree_node_base" ref="a9a2ebc5537988bf811a3e2714597190b" args="(const uint32 mask, const uint32 index)" -->
NIH_HOST_DEVICE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#a9a2ebc5537988bf811a3e2714597190b">Octree_node_base</a> (const uint32 mask, const uint32 index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">full constructor <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a313f30f552fbff26c54f4960d60034d3"></a><!-- doxytag: member="nih::Octree_node_base::is_leaf" ref="a313f30f552fbff26c54f4960d60034d3" args="() const " -->
NIH_HOST_DEVICE bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#a313f30f552fbff26c54f4960d60034d3">is_leaf</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">is a leaf? <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad51a440a9e3c78f5fc77eac0352a9f41"></a><!-- doxytag: member="nih::Octree_node_base::set_child_mask" ref="ad51a440a9e3c78f5fc77eac0352a9f41" args="(const uint32 mask)" -->
NIH_HOST_DEVICE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#ad51a440a9e3c78f5fc77eac0352a9f41">set_child_mask</a> (const uint32 mask)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">set the 8-bit mask of active children <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3cbd389263908d8da587af192bd26ee8"></a><!-- doxytag: member="nih::Octree_node_base::get_child_mask" ref="a3cbd389263908d8da587af192bd26ee8" args="() const " -->
NIH_HOST_DEVICE uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#a3cbd389263908d8da587af192bd26ee8">get_child_mask</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">get the 8-bit mask of active children <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a44afd7c67aee4e6c99f30f5f36be3b19"></a><!-- doxytag: member="nih::Octree_node_base::has_child" ref="a44afd7c67aee4e6c99f30f5f36be3b19" args="(const uint32 i) const " -->
NIH_HOST_DEVICE bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#a44afd7c67aee4e6c99f30f5f36be3b19">has_child</a> (const uint32 i) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">check whether the i-th child exists <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a445c05a1dad7940e72f5e3560e2455c8"></a><!-- doxytag: member="nih::Octree_node_base::set_child_offset" ref="a445c05a1dad7940e72f5e3560e2455c8" args="(const uint32 child)" -->
NIH_HOST_DEVICE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#a445c05a1dad7940e72f5e3560e2455c8">set_child_offset</a> (const uint32 child)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">set the offset to the first child <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4f8cb62de288321daa16596a3988e12f"></a><!-- doxytag: member="nih::Octree_node_base::get_child_offset" ref="a4f8cb62de288321daa16596a3988e12f" args="() const " -->
NIH_HOST_DEVICE uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#a4f8cb62de288321daa16596a3988e12f">get_child_offset</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">get the offset to the first child <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afaf0c44101283dfff35ff05539972624"></a><!-- doxytag: member="nih::Octree_node_base::get_leaf_index" ref="afaf0c44101283dfff35ff05539972624" args="() const " -->
NIH_HOST_DEVICE uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#afaf0c44101283dfff35ff05539972624">get_leaf_index</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">get leaf index <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a064a601aef2351dadaa9a385d36da7d5"></a><!-- doxytag: member="nih::Octree_node_base::get_child_count" ref="a064a601aef2351dadaa9a385d36da7d5" args="() const " -->
NIH_HOST_DEVICE uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#a064a601aef2351dadaa9a385d36da7d5">get_child_count</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return the number of children <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11465fd5de6e933a4e3018d2b7502a48"></a><!-- doxytag: member="nih::Octree_node_base::get_child" ref="a11465fd5de6e933a4e3018d2b7502a48" args="(const uint32 i) const " -->
NIH_HOST_DEVICE uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#a11465fd5de6e933a4e3018d2b7502a48">get_child</a> (const uint32 i) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">get the index of the i-th child (among the active ones) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9d70c9b58ab2834d18bf034b1ffc1e02"></a><!-- doxytag: member="nih::Octree_node_base::get_octant" ref="a9d70c9b58ab2834d18bf034b1ffc1e02" args="(const uint32 i) const " -->
NIH_HOST_DEVICE uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_octree__node__base.html#a9d70c9b58ab2834d18bf034b1ffc1e02">get_octant</a> (const uint32 i) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">get the index of the i-th octant. returns kInvalid for non-active children. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac966c44090fa40fa5bbcb4763a1caa7f"></a><!-- doxytag: member="nih::Octree_node_base::m_packed_info" ref="ac966c44090fa40fa5bbcb4763a1caa7f" args="" -->
uint32&#160;</td><td class="memItemRight" valign="bottom"><b>m_packed_info</b></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af2fecba21029dfb0ebfea1313d36727e"></a><!-- doxytag: member="nih::Octree_node_base::kInvalid" ref="af2fecba21029dfb0ebfea1313d36727e" args="" -->
static const uint32&#160;</td><td class="memItemRight" valign="bottom"><b>kInvalid</b> = uint32(-1)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Implements a basic octree node class, which stores up to 8 children per node, and uses a bit-mask to determine which of the 8 slots is actualy in use. The active children are stored consecutively relative to a base offset. </p>
</div><hr/>The documentation for this struct was generated from the following files:<ul>
<li>C:/p4research/research/jpantaleoni/nih/octree/<a class="el" href="octree_8h_source.html">octree.h</a></li>
<li>C:/p4research/research/jpantaleoni/nih/octree/<a class="el" href="octree__inline_8h_source.html">octree_inline.h</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Nov 24 2011 13:08:19 for nih by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
